package com.smartgame.controllers;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;


public class MenuController extends AbstractController {

	public static final String TAG = MenuController.class.getName();

	public MenuController(Game game) {
		super(game);
	}

	@Override
	public void update(float deltaTime) {
		super.update(deltaTime);

		// my own update goes here!
	}
	
	@Override
	public boolean keyDown(int keycode) {
		if (keycode == Keys.BACK) {
			// Optional back button handling (e.g. ask for confirmation)
			Gdx.app.exit();
		}
		return false;
	}

}
